(function($, doc) {
	$.init();
	var userinfo = app.getState() || {};
	var uid=userinfo.user_id;
	
	$.plusReady(function() {

		doc.getElementById('add_shop').addEventListener('tap', function() {
			  //打开添加商品页
			  mui.openWindow({
			    id:'add-shop.html',
			    url:'add-shop.html',
			    extras:{
			      goods_id:0 //自定义扩展参数，可以用来处理页面间传值
			    },
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);

		doc.getElementById('shop_manage').addEventListener('tap', function() {
			 //打开商品管理页
			  mui.openWindow({
			    id:'shop-manage.html',
			    url:'shop-manage.html',
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);

		doc.getElementById('shop_order').addEventListener('tap', function() {
			  //打开订单管理页
			  mui.openWindow({
			    id:'shop-order.html',
			    url:'shop-order.html',
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);
		
		doc.getElementById('shop_annul').addEventListener('tap', function() {
			  //打开申请撤销店铺页
			  mui.openWindow({
			    id:'shop-cancel.html',
			    url:'shop-cancel.html',
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);
		
		
		
	})
	
}(mui, document));